package com.chen.apply.feign;

import com.common.pojo.resp.ApprovalRecordRespDTO;
import com.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 调用审核模块的 Feign 客户端
 */
@FeignClient(name = "approval-service", path = "/api/approval")
public interface ApprovalServiceClient {

    /**
     * 根据申请ID获取审核记录
     */
    @GetMapping("/records/apply/{applyId}")
    Result<List<ApprovalRecordRespDTO>> getApprovalRecordsByApplyId(@PathVariable("applyId") Long applyId);

}